<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%String path = request.getContextPath();%>
<%--<jsp:include page="inc/header.jsp"></jsp:include>--%>

<c:forEach items="${requestScope.pageInfo.list}" var="job" varStatus="stat">
    <c:if test="${(stat.count+3)%4==0||(stat.count+2)%4==0}">
        <c:if test="${(stat.count+3)%4==0}">
            <li class="clearfix">
            <div class="hot_pos_l">
        </c:if>
        <c:if test="${(stat.count+2)%4==0}">
            <div class="hot_pos_r" style="float: left;">
        </c:if>
    </c:if>
    <c:if test="${(stat.count+1)%4==0||stat.count%4==0}">
        <c:if test="${(stat.count+1)%4==0}">
            <li class="odd clearfix">
            <div class="hot_pos_l"></c:if>
        <c:if test="${stat.count%4==0}">
            <div class="hot_pos_r" style="float: left;">
        </c:if>
    </c:if>
    <div class="mb10">
        <a href="h/jobs/149389.html" target="_blank">${job.jobName}</a>
        <span class="c9">[${job.city.name}]</span>
        <span class="jobsubmit"
              style="float: right;font-size: 16px;padding: 0 8px 0 8px;color: #FFF;background-color: #ff9a10;line-height: 25px;cursor: pointer;target:new;">投个简历</span>
    </div>

    <span><em class="c7">月薪： </em>${job.dictionary.name}</span>
    <span><em class="c7">经验：</em>${job.dictionary1.name}</span>
    <span><em class="c7">最低学历：</em> ${job.dictionary2.name}</span>
    <br/>
    <span>
                        <fmt:formatDate value="${job.releaseTime}" pattern="yyyy-MM-dd"/>发布
                    </span>
    <%--                        <span>15:11发布</span>--%>
    </div>
    <c:if test="${(stat.count+2)%4==0||stat.count%4==0}">
        </li>
    </c:if>
</c:forEach>


<%-- 页码--%>
<div class="Pagination" >
    <a href="">首页</a>
    <span>上一页</span>
    <c:forEach begin="1" end="${requestScope.pageInfo.pages}" var="i">

        <c:if test="${i eq requestScope.pageInfo.pageNum}" var="isCur">
            <a  style="color: #FFF;background-color: #019875;">${i}</a>
        </c:if>
        <c:if test="${not isCur}">
            <a  style="color: #FFF;background-color: #5FB878;" >${i}</a>
        </c:if>
    </c:forEach>
    <span>下一页</span>
    <span>尾页</span>
</div>

<%-- href="<%=path%>/service/listdata?pageNum=${i}"--%>